package com.twobyeyoung.login;

import com.twobyeyoung.R;
import com.twobyeyoung.tabhost.TabHostActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class LoginActivity extends Activity {

	private Button btnRegister;
	private Button btnLogin;
	private TextView tbyeString;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.login);
		btnRegister = (Button)findViewById(R.id.register_btn);
		btnLogin = (Button)findViewById(R.id.login_btn);
		btnLogin.setOnClickListener(regListener);
		btnRegister.setOnClickListener(regListener);
		String htmlString = "<html><body>Welcome <b><font color=\"#FF0000\">2</font><font color=\"#990099\">B</font><font color=\"#00cc00\">y</font><font color=\"#0066b3\">e</font></b> <font color=\"#cc0099\">Community</font> <font color=\"#009999\">Cloud</font></body></html>";
		tbyeString = (TextView)findViewById(R.id.tbye_string);
		tbyeString.setText(Html.fromHtml(htmlString));
	}
	
	OnClickListener regListener = new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			startActivity(new Intent(LoginActivity.this,TabHostActivity.class));
			finish();
		}
	};
}
